popover: Introduce _get_rect helper for a size
authorTimm Bäder <mail@baedert.org>
Thu, 1 Sep 2016 13:15:18 +0000 (15:15 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 1 Sep 2016 13:15:18 +0000 (15:15 +0200)
commit7f1ab32e6079917d5d4e0cbca36131f09a555804
treec82c88807b7f52390353eae0504d30d5a1d6f147
parent4f7ec1f1c0969cf0f7d36d56ac8227a544e8f56d
popover: Introduce _get_rect helper for a size

When calculating the requested size of a popover, we need to do the
exact same same thing _get_rect_coords did, but not for the
current popopver allocation. Add _get_rect_for_size that can be used for
this purpose
gtk/gtkpopover.c